<%@page contentType="test/html; charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8" />
    <title>多个脚本段的相互访问</title>
</head>
<body>
    <%!
        int i ;
        int num =0;
    %>
    <%
        for (i=0;i<=10;i++){
    %>
    <h1>你好！张先生</h1>
    <%
        }
    %>
    <%
        for (int j = 0; j < 10; j++) {
            num+=j;
    %>
    <%

    %>
    <%
        }
    %>
</body>
</html>
